package innerclass;

 class Outer{


     int a = 0;
     public void function(){
         final int b=222;
         class Inner{

             public  void show()
             {
                 System.out.print(a);
                 System.out.print(b);
             }
         }
         Inner inner=new Inner();
         inner.show();
     }


    public void function1()
    {

/*        Runnable runnable=new Runnable() {
            @Override
            public void run() {
                System.out.print(a);
            }
        };*/
    }
}

public class TestInnerclass {



    public static void main(String [] args)
    {
        Outer outer=new Outer();
        outer.function();
        final int a=0;
        new Thread(new Runnable() {
            @Override
            public void run() {
              int b=a;
            }
        }).start();


    }
}
